From: Jonas Dreßler Date: Tue, 12 Feb 2019 12:04:55 +0000 (+0100) Subject: workspace: Continue overlay idle hide timeout when pointing at close button X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~811^2^2~55 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=4f3c8b8d692eb50947d891fa9666b444bce35899;p=gnome-shell.git workspace: Continue overlay idle hide timeout when pointing at close button While it makes sense to remove the timeout in every other case, restart it if the pointer is hovering over the close button to make sure the overlay will be hidden afterwards. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/683 --- diff --git a/js/ui/workspace.js b/js/ui/workspace.js index f09637b89..72707173c 100644 --- a/js/ui/workspace.js +++ b/js/ui/workspace.js @@ -693,12 +693,13 @@ var WindowOverlay = class { } _idleHideOverlay() { - this._idleHideOverlayId = 0; + if (this.closeButton['has-pointer']) + return GLib.SOURCE_CONTINUE; - if (!this._windowClone['has-pointer'] && - !this.closeButton['has-pointer']) + if (!this._windowClone['has-pointer']) this._animateInvisible(); + this._idleHideOverlayId = 0; return GLib.SOURCE_REMOVE; }